<template>
  <div id="app">

  <router-view/>
  </div>
</template>

<script>
  import axios from 'axios'

export default {
  name: 'App',
  created(){
    /*axios({
      method:'get',
      url:'http://106.12.14.210:7300/mock/5b6eedb05f7323fd536a9ebb/example/test-axios'
    }).then((response)=>{
        console.log(response.data)
    }).catch((error)=>{
      console.log(error)
    })*/

    axios.get('http://106.12.14.210:7300/mock/5b6eedb05f7323fd536a9ebb/example/test-axios',{
      params:{abc:'miaov'}
    })
      .then(res=>{
        console.log(res.data)
      }).catch(error=>{
        console.log(error)
    })
    axios.post('http://106.12.14.210:7300/mock/5b6eedb05f7323fd536a9ebb/example/test-post',{id:1})
      .then(res=>{
        console.log(res.data)
      }).catch(error=>{
      console.log(error)
    })
  }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
